@charset "utf-8";
.mj-upload {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  /*.progress{ height: 5px; border-radius: 2px;left: 0; top: 0; position: absolute; display: block; background: #2d8cf0;z-index: 5;
  }
  .img-name{display: block;text-align: center;height: 25px;line-height: 25px;}
  .upload-list{ border: 1px solid #ddd;
    ul{overflow: hidden;}
    li{ float: left; width: 120px; overflow: hidden; position: relative; margin: 5px; background: #f8f8f8;
      img{width: 120px; height: 90px;}
    }
  }*/
  /*.del{ right: 0; top: 0; position: absolute; }*/
}

.mj-upload .upload-file {
  display: inline-block;
  cursor: pointer;
}

.mj-upload input {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  height:100%;
}

.mj-upload .drag-file {
  height: 150px;
  width: 300px;
  border: dashed 1px #d9d9d9;
  margin-bottom: 10px;
  color: #777;
  background: #fff;
  text-align: center;
  border-radius:5px;
}

.mj-upload .drag-file * {
	pointer-events: none;
}

.mj-upload .drag-file .icon {
  font-size:56px;
  color:var(--primary);
  display: inline-block;
  padding-top: 10px;
}

.mj-upload .is-drag-enter {
	border-color:var(--primary);
}

.mj-upload-crop {
  display: inline-block;
}

.mj-upload-crop .main-crop {
  border: 1px dashed #d9d9d9;
  position: relative;
}

.mj-upload-crop .select-img {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  z-index: 10;
  text-align: center;
}

.mj-upload-crop .canvas-crop-img {
  position: absolute;
  left: 0;
  top: 0;
}

.mj-upload-crop .canvas-crop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.mj-upload-crop .control-box {
  z-index: 4;
  cursor: move;
  position: absolute;
  border: 1px dashed #409eff;
  user-select: none;
  /*ie样式兼容问题，使用1个像素的透明png*/
  background: url();
}

.mj-upload-crop .control-box .select-area-tips {
  position: absolute;
  left: 0;
  top: -20px;
  color: #fff;
  font-size: 12px;
  width: 100%;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.mj-upload-crop .control-box .control-btn {
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  background: #409eff;
  position: absolute;
  border-radius: 50%;
}

.mj-upload-crop .control-box .leftUp {
  top: 0;
  left: 0;
  margin-left: -5px;
  margin-top: -5px;
  cursor: se-resize;
}

.mj-upload-crop .control-box .topCenter {
  top: 0;
  right: 50%;
  margin-right: -5px;
  margin-top: -5px;
  cursor: s-resize;
}

.mj-upload-crop .control-box .rightUp {
  top: 0;
  right: 0;
  margin-right: -5px;
  margin-top: -5px;
  cursor: sw-resize;
}

.mj-upload-crop .control-box .leftCenter {
  top: 50%;
  left: 0;
  margin-left: -5px;
  margin-top: -5px;
  cursor: e-resize;
}

.mj-upload-crop .control-box .rightCenter {
  top: 50%;
  right: 0;
  margin-right: -5px;
  margin-top: -5px;
  cursor: e-resize;
}

.mj-upload-crop .control-box .leftDown {
  bottom: 0;
  left: 0;
  margin-left: -5px;
  margin-bottom: -5px;
  cursor: sw-resize;
}

.mj-upload-crop .control-box .downCenter {
  bottom: 0;
  right: 50%;
  margin-right: -5px;
  margin-bottom: -5px;
  cursor: s-resize;
}

.mj-upload-crop .control-box .rightDown {
  bottom: 0;
  right: 0;
  margin-right: -5px;
  margin-bottom: -5px;
  cursor: se-resize;
}

.mj-upload-crop .control-box .box-line {
  border-right: 1px dashed #409eff;
  box-sizing: border-box;
  position: absolute;
}

.mj-upload-crop .control-box .box-line-1 {
  left: 33%;
  height: 100%;
  width: 1px;
}

.mj-upload-crop .control-box .box-line-2 {
  left: 66%;
  height: 100%;
  width: 1px;
}

.mj-upload-crop .control-box .box-line-3 {
  top: 33%;
  width: 100%;
  height: 1px;
  border-bottom: 1px dashed #409eff;
}

.mj-upload-crop .control-box .box-line-4 {
  top: 66%;
  width: 100%;
  height: 1px;
  border-bottom: 1px dashed #409eff;
}

.mj-upload-crop .crop-btn {
  position: relative;
  padding-top: 5px;
}

.mj-upload-crop .crop-btn .crop-upload {
  position: absolute;
  right: 0;
}

.mj-upload-crop .image-file {
  opacity: 0;
  position: absolute;
}

